home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _C591E0102CD54584BE5B6B5ECA6C90B9 < prev    next >
Encoding:
Text File  |  2000-03-27  |  2.8 KB  |  86 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4.  
  5.  
  6.  
  7.  
  8. local entity beam1 // the first beam looking from the front
  9. local entity beam1b
  10.  
  11. local entity beam2 // second beam
  12. local entity beam2b 
  13.  
  14. local entity beam3 // third beam
  15. local entity beam3b 
  16.  
  17. local entity rubblechunk1 // the first ceiling rubble chunk that will animate
  18. local entity rubblechunk2 // the second one
  19.  
  20. local entity breakceiling // the ceiling breakable brush
  21.  
  22. local entity endexplosion1 // the first explosion
  23. local entity endexplosion2 // 2nd
  24. local entity endexplosion3 // 3rd
  25. local entity trainplayer
  26. local entity trainshake // the screenshake effect for the explosion
  27. local entity dirtpile //
  28. local entity tunnelsabre // the sabre model the player will see running into the alcove
  29. local int sig1
  30.  
  31.  
  32. beam1 = find entity with targetname "beam1"
  33. beam1b = find entity with targetname "beam1b"
  34. beam2 = find entity with targetname "beam2"
  35. beam2b = find entity with targetname "beam2b"
  36. beam3 = find entity with targetname "beam3"
  37. beam3b = find entity with targetname "beam3b"
  38.  
  39. rubblechunk1 = find entity with targetname "rubblechunk1"
  40. rubblechunk2 = find entity with targetname "rubblechunk2"
  41.  
  42.  
  43. breakceiling = find entity with targetname "breakceiling"
  44.  
  45.  
  46. endexplosion1 = find entity with targetname "endexplosion1"
  47. endexplosion2 = find entity with targetname "endexplosion2"
  48. endexplosion3 = find entity with targetname "endexplosion3"
  49.  
  50. trainplayer = get entity activator
  51. trainshake = find entity with targetname "trainshake"
  52. tunnelsabre = find entity with targetname "tunnelsabre"
  53.  
  54.  
  55. dirtpile = find entity with targetname "dirtpile"
  56.  
  57. // THE EXPLOSIVES GETTING SET OFF
  58.  
  59. animate entity tunnelsabre performing action STD_R_N_PK_N by moving [-448, 0, 0] signaling sig1 // him running into the little alcove
  60. wait for all clearing sig1
  61.  
  62.  
  63. use entity endexplosion1
  64.  
  65. moverotate entity beam1 from file "tsr1_beam1.rof" // the first beams animation
  66. moverotate entity beam1b from file "tsr1_beam1b.rof" // the first part 2
  67. moverotate entity beam2 from file "tsr1_beam2.rof" // second 
  68. moverotate entity beam2b from file "tsr1_beam2b.rof" // 
  69. moverotate entity beam3 from file "tsr1_beam3.rof" // third
  70. moverotate entity beam3b from file "tsr1_beam3b.rof" // 
  71.  
  72.  
  73. moverotate entity rubblechunk1 from file "tsr1_rchunk1.rof" // the first rubble chunk animation
  74. moverotate entity rubblechunk2 from file "tsr1_rchunk2.rof" // second one
  75.  
  76.  
  77. play sound "Impact\Stone\BigRubble.adp" for entity trainplayer at volume 0.9 on channel CHAN_AUTO
  78. use entity trainshake // triggers it
  79. use entity breakceiling
  80. use entity dirtpile // triggers the dirpile in
  81.  
  82. animate entity tunnelsabre performing action STD_R_N_PK_N by moving [0, 176, 0] signaling sig1 // him running out of view
  83. wait for all clearing sig1
  84. remove entity tunnelsabre // gets him out of the world
  85.  
  86.